package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-04：时间
 *
 * @author snps
 * @create 2022-01-27 15:02
 * @describe
 **/
public class Config04 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -5893517455160294035L;


    /**
     * 年
     */
    private int year;

    /**
     * 月
     */
    private int month;

    /**
     * 日
     */
    private int day;

    /**
     * 时
     */
    private int hour;

    /**
     * 分
     */
    private int minute;

    /**
     * 秒
     */
    private int second;


    /**
     * Constructor
     */
    public Config04() {
        this.setCommonNo("04");
    }


    /**************************************
     * Getter and Setter
     */
    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }


    @Override
    public String toString() {
        return "Config04{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                ", hour=" + hour +
                ", minute=" + minute +
                ", second=" + second +
                '}';
    }

}